$(".font").eq(0).css("color","rgb(17,100,219)");
// 头部时间
function date() {
    let date = new Date(),
        year = date.getFullYear(),
        month = date.getMonth(),
        day = date.getDate(),
        hour = date.getHours(),
        minu = date.getMinutes();
    month < 10 ? month = '0' + month : false;
    day < 10 ? day = '0' + day : false;
    hour < 10 ? hour = '0' + hour : false;
    minu < 10 ? minu = '0' + minu : false;
    $('.date').text(`${year}.${month}.${day} ${hour}:${minu}`);
}
date();
setInterval(date,60000);
//内容引入
$('.font').each((index,data)=>{
    $(".font").eq(index).click(function () {
        switch (index)
        {
            case 0:
                $("#content").attr("src","shouvip.html");
                break;
            case 1:
                $("#content").attr("src","hltc.html");
                break;
            case 2:
                $("#content").attr("src","daoju.html");
                break;
            case 3:
                $("#content").attr("src","video.html");
                break;
        }
        $(this).parent().children().css("color","black");
        console.log($(this));
        $(this).css("color","rgb(17,100,219)");
    });
});